import { post } from '@/utils/request'

// 查询群标签分页列表 /service-cop/b/friends/v1/pageList
export const getGroupTagsPageList = p => post(`/service-cop/b/groupTags/v1/pageList`, p)
// 查询群标签分页列表 /service-cop/b/friends/v1/pageList
export const getGroupTagsList = p => post(`/service-cop/b/groupTags/v1/list`, p)
// 查询群标签详情
export const viewGroupTags = p => post(`/service-cop/b/groupTags/v1/view/${p.id}`, p, 'get')
// 群批量设置标签
export const changeTagsBatch = p => post(`/service-cop/b/groupTags/v1/changeTagsBatch`, p)
// 添加群标签
export const addGroupTags = p => post(`/service-cop/b/groupTags/v1/add`, p)
// 修改群标签
export const modifyGroupTags = p => post(`/service-cop/b/groupTags/v1/modify`, p)
// 删除群标签
export const delGroupTags = p => post(`/service-cop/b/groupTags/v1/del/${p.id}`, p, 'get')
// 删除群标签
export const changeGroupTagsStatus = p => post(`/service-cop/b/groupTags/v1/changeStatus/${p.id}/${p.status}`, p, 'get')

// 查询群自动标签分页列表 /service-cop/b/friends/v1/pageList
export const getGroupAutoTagsPageList = p => post(`/service-cop/b/groupTags/v1/autoTagsPageList`, p)
// 查询群自动标签分页列表 /service-cop/b/friends/v1/pageList
export const getGroupAutoTagsList = p => post(`/service-cop/b/groupTags/v1/autoTagsList`, p)
// 查询群自动标签详情
export const viewGroupAutoTags = p => post(`/service-cop/b/groupTags/v1/autoTagsView/${p.id}`, p, 'get')
// 添加群自动标签
export const addGroupAutoTags = p => post(`/service-cop/b/groupTags/v1/autoTagsAdd`, p)
// 修改群自动标签
export const modifyGroupAutoTags = p => post(`/service-cop/b/groupTags/v1/autoTagsModify`, p)
// 删除群自动标签
export const delGroupAutoTags = p => post(`/service-cop/b/groupTags/v1/autoTagsDel/${p.id}`, p, 'get')
// 删除群自动标签
export const changeGroupAutoTagsStatus = p => post(`/service-cop/b/groupTags/v1/autoTagsChangeStatus/${p.id}/${p.status}`, p, 'get')

// 查询群分页列表 /service-cop/b/friends/v1/pageList
export const getGroupPageList = p => post(`/service-cop/b/group/v1/pageList`, p)
// 查询群详情
export const viewGroup = p => post(`/service-cop/b/group/v1/view/${p.id}`, p, 'get')
// 从企业微信同步群列表
export const syncGroupListFromWx = p => post(`/service-cop/b/group/v1/syncGroupList`, p)

// 查询群欢迎词分页列表 /service-cop/b/friends/v1/pageList
export const getGroupWelcomePageList = p => post(`/service-cop/b/groupWelcome/v1/list`, p)
// 查询群欢迎词详情
export const viewGroupWelcome = p => post(`/service-cop/b/groupWelcome/v1/view/${p.id}`, p, 'get')
// 添加群欢迎词
export const addGroupWelcome = p => post(`/service-cop/b/groupWelcome/v1/add`, p)
// 修改群欢迎词
export const modifyGroupWelcome = p => post(`/service-cop/b/groupWelcome/v1/modify`, p)
// 删除群欢迎词
export const delGroupWelcome = p => post(`/service-cop/b/groupWelcome/v1/del/${p.id}`, p, 'get')
// 删除群欢迎词
export const changeGroupWelcomeStatus = p => post(`/service-cop/b/groupWelcome/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 同步群欢迎词到企微
export const syncGroupWelcomeToWxCp = p => post(`/service-cop/b/groupWelcome/v1/syncGroupWelcomeToWxCp/${p.id}`, p)
